package com.rms.hkpc.view;

import com.rms.hkpc.apiresult.ApiResultData;
import com.rms.hkpc.db.dto.ShortDto;
import com.rms.hkpc.db.dto.VersionDto;

import java.io.File;
import java.util.List;
import java.util.Locale;

public interface ISettingsView extends IView {
    void onGetProjectSuccess(ApiResultData<List<ShortDto>> apiResultData);
    void onGetProjectFail(Exception e);

    void onUploadProjectSuccess(ApiResultData<String> apiResultData,String projectName,String projectId);
    void onUploadProjectFail(Exception e);

    void onUploadLanguageSuccess(ApiResultData<String> apiResultData, int languageId, Locale locale);
    void onUploadLanguageFail(Exception e);

    void onGetVersionSuccess(ApiResultData<VersionDto> apiResultData);
    void onGetVersionFails(Exception e);

    void onDownloadFileSuccess(File file);
    void onDownloadProgress(int progress);
    void onDownloadFails(Exception e);

    void onLogoutSuccess(ApiResultData<String> apiResultData);
    void onLogoutFail(Exception e);

}
